﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Model.ywxt
{
    /// <summary>
    /// 流程的用户审核活动记录
    /// </summary>
    [Serializable]
    public class wf_action_douser
    {
        #region 数据表名称
        public static readonly string TableName = "wf_action_douser";
        #endregion

        #region 数据表字段结构
        public struct Columns
        {
            /// <summary>
            /// ID
            /// </summary>
            public static readonly string r_id = @"r_id";

            /// <summary>
            /// 所属流程活动记录ID
            /// </summary>
            public static readonly string act_id = @"act_id";

            /// <summary>
            /// 所属流程活动记录的审批人ID
            /// </summary>
            public static readonly string user_id = @"user_id";

            /// <summary>
            /// 所属流程活动记录的审批人真实姓名
            /// </summary>
            public static readonly string user_truename = @"user_truename";

            /// <summary>
            /// 执行标志：0、未启动（等待执行服务发送邮件）；1、已启动但未执行（执行服务已发送邮件，等待审批回复）；99、执行完毕（已经审批回复）；
            /// </summary>
            public static readonly string do_flag = @"do_flag";

            /// <summary>
            /// 执行结果标志：0、未执行；-1、不通过；1、通过；
            /// </summary>
            public static readonly string result_flag = @"result_flag";

            /// <summary>
            /// 审核结果描述
            /// </summary>
            public static readonly string result_describe = @"result_describe";

            /// <summary>
            /// 是否有效标志
            /// </summary>
            public static readonly string is_valid = @"is_valid";

            /// <summary>
            /// 创建时间
            /// </summary>
            public static readonly string create_date = @"create_date";


            /// <summary>
            /// 用户所属部门ID
            /// </summary>
            public static readonly string dept_id = @"dept_id";
        }
        #endregion

        #region 字段
        /// <summary>
        /// 记录ID
        /// </summary>
        public virtual string r_id { get; set; }

        /// <summary>
        /// 所属流程活动记录
        /// </summary>
        public virtual wf_action action { get; set; }

        /// <summary>
        /// 所属流程活动记录的审批人
        /// </summary>
        public virtual t_sys_user action_user { get; set; }

        /// <summary>
        /// 所属流程活动记录的审批人真实姓名
        /// </summary>
        public virtual string user_truename { get; set; }

        /// <summary>
        /// 执行标志：0、未启动（等待执行服务发送邮件）；1、已启动但未执行（执行服务已发送邮件，等待审批回复）；99、执行完毕（已经审批回复）；
        /// </summary>
        public virtual int do_flag { get; set; }

        /// <summary>
        /// 执行结果标志：0、未执行；-1、不通过；1、通过；
        /// </summary>
        public virtual int result_flag { get; set; }

        /// <summary>
        /// 审核结果描述
        /// </summary>
        public virtual string result_describe { get; set; }

        /// <summary>
        /// 是否有效
        /// </summary>
        public virtual int is_valid { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime create_date { get; set; }
        #endregion
    }
}
